#ifndef LOG
#define LOG

#include "common.h"

struct Log{
    Log(string file = ""){
        if (file != ""){
            freopen(file.c_str(), "w", stdout);
        }
    }

    void e(string ss, Vec vec){
        cout << ss << " : " << vec << "\n";
    }

    void e(string ss, Ray ray){
        cout << ss << " : " << ray << "\n";
    }

    void e(string ss, RGB color){
        cout << ss << " : " << color << "\n";
    }
};

#endif // LOG

